Added method pull_docker_image in evaluation_script_starter.py #50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am currently trying to setup a code-based challenge.
This requires that the participants submit docker images, which are then run by the evaluation script.
Downloading these docker submissions requires logging to AWS ECR, which is a complex and not enough documented operation to people who have not used it before.
So I am creating this pull request where I share the method I wrote to download the images in the evaluation script.
I think having this will be very valuable to future people who want to run code-based challenges with EvalAI.
This method requires boto3 (to login on AWS) and docker (since it has to pull docker images), so it requires more libraries compared to those listed in requirements.txt.
Since these libraries are only needed for code based challenges, I have not added them to the requirements.txt and I have also "hidden" the imports inside the method, so that the libraries will only requested to those who actually used this method.